<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<div v-test:msg.a.b="message"></div>
		</div>
		<script src="js/vue2.5.js"></script>
		<script>
			var vm = new Vue({
				el:'#app',
				data:{
					message : 'some Text'
				},
				directives:{
					'test':{
						bind(el,binding,vnode){
							debugger
							var keys = [];
							for(var i in vnode){
								keys.push(i);
							}
							el.innerHTML=
							'name:'+binding.name+'<br/>'+
							'value:'+binding.value+'<br/>'+
							'expression:'+binding.expression+'<br/>'+
							'modifiers:'+JSON.stringify(binding.modifiers)+'<br/>'+
							'vnode keys:'+keys.join(',');
						}
					}
				}
			})
		</script>
	</body>
</html>
